home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12984 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: mother.usf.edu!news
  2. From: yatesc@csee.usf.edu (Randy Yates)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Sound Programming
  5. Date: 22 Mar 1996 15:46:55 GMT
  6. Organization: University of South Florida
  7. Message-ID: <4iui1f$o0p@mother.usf.edu>
  8. References: <4irfbm$lun@hod.hiof.no>
  9. NNTP-Posting-Host: ppp166.cfr.usf.edu
  10. Mime-Version: 1.0
  11. X-Newsreader: WinVN 0.93.14
  12.  
  13. In article <4irfbm$lun@hod.hiof.no>, torstein@sid.hiof.no says...
  14. >
  15. >In my project, I'm supposed to try to put an array of floats out on the
  16. >speakers. The values of the floats are from 100.0 to 160.0.
  17. >Is it possible to write them to my SB16? And if so, can anyone please tell
  18. >me how?
  19. >
  20. >Thanx in advance.
  21.  
  22. Before you ever get to the problem of outputting the data 
  23. you have to decide how you're going to scale your
  24. data. If you try to simply convert these values to 16-bit signed
  25. integers, you will have a dynamic range of 35.6 dB and that dynamic
  26. range will be some -60 dB below full-scale - fairly faint! Also,
  27. you don't seriously expect the Soundblaster to maintain DC levels,
  28. do you? I'm sure it is AC-coupled, hence any DC information is going
  29. to be lost. 
  30.  
  31.  
  32. >
  33. >Torstein
  34. >--
  35. >      torstein@sid.hiof.no (URL: http://www-ia.hiof.no/~torstein)
  36. >                            ----- /// -----
  37. >                Organized religions make a Mockery of humanity
  38.  
  39. -- 
  40. % Randy Yates                  % "...the answer lies within your soul
  41. % EE/Mathematics Student       %       'cause no one knows which side 
  42. % University of South Florida  %                   the coin will fall."
  43. % <yatesc@csee.usf.edu>        %  'Big Wheels', *Out of the Blue*, ELO   
  44.  
  45.